package com.sanxiau.dormitory.yang;

public class Test {
    public static void main(String[] args) {
        Father father = new Father();
        Father father1 = new Father("zs",35,8000);
        father.eat();
        father.eat("妈妈");
        Father.work();
        Son son = new Son();
        Son son1 = new Son("zw",18,0,"北京大学");
        son.eat();
        Son.work();
        Father father2 = new Son();
        father2.eat();
        System.out.println(father2.getName());
        System.out.println(father2.name);
    }
}
